.PHONY:publish_client consumer_client
all:publish_client consumer_client
publish_client:publish_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/mq_msg.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../mqthird/include -lpthread -L../mqthird/lib -lmuduo_base -lmuduo_net -lz -lprotobuf
consumer_client:consumer_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/mq_msg.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../mqthird/include -lpthread -L../mqthird/lib -lmuduo_base -lmuduo_net -lz -lprotobuf